﻿using PLCS.Application.Contracts.OrderApp.Dtos;

namespace PLCS.Application.Contracts.HisOrderApp.Dtos;

public class HisOrderDto : EntityDto<Guid>
{
    /// <summary>
    /// 编号
    /// </summary>
    public string UpperNo { get; set; }

    /// <summary>
    /// 线体编码
    /// </summary>
    public string PdLineNo { get; set; }

    /// <summary>
    /// 物料编码
    /// </summary>
    public string TrayNo { get; set; }

    /// <summary>
    /// 工单号
    /// </summary>
    public string OrderNo { get; set; }

    public string? SolutionNo { get; set; }

    /// <summary>
    /// 工单类型
    /// </summary>
    public string OrderType { get; set; }

    public string OnlineStation { get; set; } = "101";

    /// <summary>
    /// 计划开始时间
    /// </summary>
    public DateTime PlanStartTime { get; set; }

    /// <summary>
    /// 计划结束时间
    /// </summary>
    public DateTime PlanEndTime { get; set; }

    /// <summary>
    /// 实际开始时间
    /// </summary>
    public DateTime? FactStartTime { get; set; }

    /// <summary>
    /// 工单状态
    /// </summary>
    public OrderStatus Status { get; set; }

    /// <summary>
    /// 实际结束时间
    /// </summary>
    public DateTime? FactEndTime { get; set; }

    public DateTime CreationTime { get; set; }

    public List<OrderRunningConditionDto> OrderRunningConditions { get; set; }
}